package com.numberone.web.controller.MarkertingTool;

import com.numberone.common.base.AjaxResult;
import com.numberone.common.page.TableDataInfo;
import com.numberone.framework.web.base.BaseController;
import com.numberone.system.domain.MarkertingTool;
import com.numberone.system.service.IMarkertingToolService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;
/**
 * 营销工具 信息操作处理
 *
 * @author 郭财源
 * @date 2020-09-25
 */
@Controller
@RequestMapping("/api/MarkertingTool")
public class MarkertingToolApiController extends BaseController {
    @Resource
    private IMarkertingToolService markertingToolService;

    @ResponseBody
    @RequestMapping("/getMarkertingTool")
    public AjaxResult getMarkertingTool()
    {
        List<MarkertingTool> markertingTools = markertingToolService.selectMarkertingToolList(null);
        TableDataInfo dataTable = getDataTable(markertingTools);
        return AjaxResult.success(null,dataTable);
    }
}
